tar xf ${DOWNLOADDIR}/vala-0.56.18.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/vala-0.56.18
    PKG_CONFIG_PATH=${SYSDIR}/cross-tools/lib64/pkgconfig \
    ./configure --prefix=${SYSDIR}/cross-tools --disable-valadoc
    make ${JOBS}
    make install
popd
cat > ${SYSDIR}/cross-tools/bin/${CROSS_TARGET}-vapigen << EOF
#!/bin/bash -e
${SYSDIR}/cross-tools/bin/vapigen --vapidir=${SYSDIR}/sysroot/usr/share/vala/vapi \
                                  --girdir=${SYSDIR}/sysroot/usr/share/gir-1.0  "\$@"
EOF
chmod +x ${SYSDIR}/cross-tools/bin/${CROSS_TARGET}-vapigen

cat > ${SYSDIR}/cross-tools/bin/${CROSS_TARGET}-valac << EOF
#!/bin/bash -e
${SYSDIR}/cross-tools/bin/valac --vapidir=${SYSDIR}/sysroot/usr/share/vala/vapi "\$@"
EOF
chmod +x ${SYSDIR}/cross-tools/bin/${CROSS_TARGET}-valac

